<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册失败！！！</title>
<script type="text/javascript">
function check()
    {
        if((myform.username.value!=""))
        {
            if((myform.pwd.value!=""))
            {
                return true
            }
            else
            {
                alert("密码不能为空");
                return false
             }
          }
        else      
        {
            alert("用户名不能为空");
            return false
         }
      }

</script>

</head>
<body>
<h2>用户名已存在，请重新注册</h2>
<form action="/zz_java3//huang.homework15/Register1" name="myform" onSubmit="return check()">
用户名<input name="username"type="text"><br>
密码&nbsp;&nbsp;&nbsp;<input name="pwd" type="password"><br>
男<input type="radio" name="sex" value="male"><br>
女<input type="radio" name="sex" value="female">
<input type="submit" value="注册"><br>
</form>
</body>
</html>